<%@page import="youleche.com.controler.controler.PageDataForBussinessControler"%>
<%@page import="youleche.com.model.MRentVehicleInfo"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/WEB-INF/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="keywords" content="美乐车租车，出租自行车,出租电动车,美乐车,电动车报价,自行车报价,车辆售后服务" />
<meta name="description" content="美乐车租车，出租自行车，出租电动车，全国最大的车辆交易信息网站" />
<title>美乐车租车-全国最大的车辆信息交易平台</title>
<link  href="${ctx}/css/home.css"  rel="stylesheet"/>
<link  href="${ctx}/css/a.css"  rel="stylesheet"/>
<link  href="${ctx}/css/cms.css"  rel="stylesheet"/>
<link href="${ctx}/image/meileche.jpg" rel="shortcut icon"/>
<script type="text/javascript" src="${ctx}/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.cookie.js"></script>
<script type="text/javascript" src="${ctx}/js/zcs.js"></script>
</head>
<body>
<%
	List<MRentVehicleInfo> list = PageDataForBussinessControler.getRentInfos();
	if(list == null || list.size() == 0){
		return;
	}
%>
<%@include file="top.jsp" %>
<%@include file="nav.jsp" %>
<div style="margin-left:auto;margin-right:auto;width:1000px;margin-top:0px;border:1px #3CAC7E solid;padding-bottom:10px;">
        <img src="${ctx}/image/daohang.jpg" style="width:20px;height:20px;vertical-align: bottom;"/>
		<a href="http://www.meileche.com" style="color:#444;">美乐车网</a>
		->
		<a href="http://www.meileche.com/zcs.jsp" style="color:#444;">美乐租车</a>
	
        </div>
<div style="width:1000px;margin-left:auto;margin-right:auto;min-height:30px;margin-top:10px;">
	<div style="float:left;width:800px;min-height:30px;border:1px dotted #ccc;">
		<div style="float:left;width:60px;height:20px;margin: 10px 20px 0px 20px;vertical-align: middle;color:#666;font-size:12px;">排序:</div>
		<div style="float:left;width:700px;height:27px;padding-top:3px;">
			<a href="#" class="a_sort" onclick="sort('A4', this);">相关度</a>
			<a href="#" class="a_sort" onclick="sort('rentPrice', this);">价格</a>
		</div>
	</div>
	<div style="float:left;width:800px;min-height:30px;border:1px dotted #ccc;margin-top:10px;">
		<div style="float:left;width:60px;height:20px;margin: 10px 20px 0px 20px;vertical-align: middle;color:#666;font-size:12px;">其他:</div>
		<div style="float:left;width:700px;height:27px;padding-top:10px;">
			<a href="#" class="a_sort" onclick="javascript:location.reload();">刷新页面</a>
		</div>
	</div>
</div>
<div style="width:1000px;margin-left:auto;margin-right:auto;">
	<div style="float:left;width:800px;min-height:100%;" id="mainCenter">
	<input type="hidden" value="<%=list.size() %>" id="hidNextInfoSize"/>
		<%
			String rentType = "个人租车";
			for(int i=0; i<list.size(); i++){
				if("1".equals(list.get(i).getRentType())){
					rentType = "商家租车("+list.get(i).getShopName()+")";
				}
				
				
				%>
				<div style="border:1px solid #dbe4eb;margin: 10px 0px 10px 0px;width:800px;float:left;height:100px;">
			<div style="width:100px;height:100px;float:left;">
				<img  style="width:100px;height:100px;" src="vehicleImage/<%= "0".equals(list.get(i).getImageId()) ? "nopic_100_100.jpg" : list.get(i).getImageId()  %>"/>
			</div>
			<div style="float:left;width:700px;height:100px;">
				<div style="float:left:width: 700px;height:100px;">
					<div style="width:390px;padding-left:10px;float:left;height:100px;">
						<div style="color:#3b3b3b;width:390px;padding-left:10px;float:left;height:50px;font-size:14px;line-height:25px;vertical-align:middle;">
							<%= list.get(i).getRentTitle() %>
						</div>
						<div style="color:#3b3b3b;width:390px;padding-left:10px;float:left;height:25px;font-size:14px;vertical-align:middle;">
							<img src="image/<%= "0".equals(list.get(i).getVehicleType()) ? "d_icon.jpg" : "z_icon.jpg"%>"/>
						</div>
						<div style="color:#444;width:390px;padding-left:10px;float:left;height:25px;font-size:14px;vertical-align:middle;">
							<%=rentType %>
						</div>
					</div>
					
					<div style="float:left;width:200px;height:100px;"> 
						<div
							style="float: left; width: 50px; height: 100px; text-align: right; line-height: 90px; vertical-align: text-top; font-size: 20px; font-style: italic; color: #444;">￥</div>
						<div
							style="float: left; width: 100px; height: 100px; text-align: center; line-height: 110px; font-size: 50px; color: #F60;">
						<%= list.get(i).getRentPrice() %>
						</div>
						<div style="float: left; width: 50px; height: 80px;padding-top:20px; text-align: left; line-height: 90px; vertical-align: bottom; font-size: 14px; font-style: italic; color: #444;">
							元/日
						</div>
					</div>
					
					<div style="float:right;width:100px;height:80px;padding-top:20px;">

						<a class="detail-btn4" href="rent.do?action=1&id=<%=list.get(i).getRentId()%>" >租车</a>
					</div>
					
				</div>
				
			</div>
			
		</div>
				
				<%
			}
		%>
		
	</div>
	<div style="float:left;width:200px;">
		<div style="float:left;width:198px;border: 1px solid #ccc;margin-top:10px;padding-top:30px;height:70px;">
			<a class="detail-btn5" href="zc.jsp" >发布租车信息</a>
		</div>
		<div style="float:left;width:198px;border: 1px solid #ccc;border-top:0px;min-height:50px;">
			<ul>
				<li></li>
			</ul>
		</div>
	</div>
	
	<div style="float:left;width:800px;height:80px;">
		<div style="margin-top:20px;margin-left:auto;margin-right:auto;width:1000px;height:60px;">
			<div style="float:left;width:480px;margin-right:20px;text-align:right;" id="divPre">
			<img src="image/btn_pre1.png" style="cursor:pointer;" onclick="prePage();"/>
			</div>
			<div style="float:left;width:480px;margin-left:20px;" id="divNext">
			<img src="image/btn_next1.png" style="cursor:pointer;" onclick="nextPage();"/>
			</div>
		</div>
	</div>
	<div style="float:left;width:1000px;min-height:50px;margin-left:auto;margin-right:auto;border-right:1px solid #999;border-left:1px solid #999;border-top:2px solid #999;">
		<div style="width:1000px;float:left;">
			<img src="${ctx}/image/glzx.jpg" style="border: 0px;"/>
		</div>
		<div style="float:left;width:1000px;height:170px;" class="cms_new1">
		<%@include file="qy/html/one2.jsp" %>
</div>
	</div>

</div>

<%@include file="foot.jsp" %>
</body>
</html>